class User:
    count = 0 #类属性

    # def __init__(self):
    #     pass

    #python没有重载 后面的方法覆盖前面的
    #设置函数的默认值 实现类似 重载的效果
    def __init__(self,name=None,age=None,sex=None,email=None):
        #成员变量
        self.__name = name
        self.age = age
        self.sex = sex
        self.email = email

    def getName(self):
        return self.__name

    def setName(self,name):
        self.__name = name

    def show(self):
        print("show--------------------")

    @classmethod
    def show1(cls):
        print("show1--------------------")

    @staticmethod
    def __show2():
        print("show2--------------------")


class Parent:
    name = "parent"
    def show(self):
        print(f"show------{self.name}-----")

class Child(Parent):
    age = 20
    def study(self):
        print(f"study------{self.name}------")
    def show(self):
        print(f"child----show---{self.name}------")